<template>
  <div>
    <h3>App组件</h3>
    <h4>App组件中的count:{{ count }}</h4>
    <Show :count="count" :change="change" />
  </div>
</template>

<script>
import Show from "@/components/Show";
export default {
  name: "App",
  data() {
    return {
      count: 0,
    };
  },
  components: {
    Show,
  },
  methods: {
    change(n) {
      this.count += n;
    },
  },
};
</script>

<style>
</style>